<?php
                    $fields = $this->requestAction(array('controller'=>'fields','action'=>'mylist'));
                    echo "<div class='index_search'>";
                    
                    echo "<table cellspacing=0 cellpadding=0 width=1180px>";
                    echo "<tr><td>";
                    echo $form->create('Job',array('controller'=>'jobs','action'=>'search_result'));
                    echo " Job Search <input type='text' name='keyword'> ";
                    echo " <select name='category' width=20> <option value=0> Position </option> <option value=2> All Text </option> <option value=1> Company </option>  </select>";
                    echo " <select name='field'> <option value='0'> - All Categories - </option>";
                    for($i=0;$i<count($fields);$i++)
                    {
                        echo "<option value='".$fields[$i]['Field']['id']."'> ".$fields[$i]['Field']['name']." </option>";
                    } 
                    echo "</select>";
                    echo " <input type='submit' class='submit' name='bykeyword' value='GO'>";
                    echo "<span>".$html->link('[ Specific Search ]',array('controller'=>'jobs','action'=>'search'))."</span>"; 
                    echo "</form>"; 

                    echo "</td>";
                    if(isset($_SESSION['User']))
                    { 
                        echo "<td align='right'>";
                        $baseurl = current(split("app", $_SERVER['PHP_SELF']));
                        $space = "";
                        //echo "<span style='width:400px;position:absolute;text-align:right;font-size:90%;'> ".$space." Welcome , ".$_SESSION['User']['username']." <a href='".$baseurl.$_SESSION['User']['type']."s/logout'>[ Logout ]</a></span>"; 
                        echo "Welcome , ".$_SESSION['User']['username']." <a href='".$baseurl.$_SESSION['User']['type']."s/logout' class='sky'>[ Logout ]</a> &nbsp"; 
                        echo "</td>";
                    } 
                    echo "</tr>";
                    echo "</table>";
                    echo "</div>";
                    echo "<hr color='#ccc'>"; 

                   
                    
 ?>